package com.androidx.p013lv.mine.databinding;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.databinding.adapters.TextViewBindingAdapter;
import com.androidx.p013lv.base.view.CircleImageView;
import com.androidx.p013lv.mine.C1206BR;
import com.androidx.p013lv.mine.C1207R;
import com.androidx.p013lv.mine.activity.EditUserInfoActivity;
import com.androidx.p013lv.mine.bean.EditInfoReq;
import com.androidx.p013lv.mine.generated.callback.OnClickListener;

/* renamed from: com.androidx.lv.mine.databinding.ActivityEditUserInfoLayoutBindingImpl */
public class ActivityEditUserInfoLayoutBindingImpl extends ActivityEditUserInfoLayoutBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes = null;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback20;
    private final View.OnClickListener mCallback21;
    private final View.OnClickListener mCallback22;
    private final View.OnClickListener mCallback23;
    private final View.OnClickListener mCallback24;
    private long mDirtyFlags;
    private final TextView mboundView1;
    private final TextView mboundView10;
    private final TextView mboundView2;
    private final CircleImageView mboundView3;
    private final TextView mboundView6;
    private final LinearLayout mboundView7;
    private final LinearLayout mboundView9;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(C1207R.C1210id.toolbar, 11);
    }

    public ActivityEditUserInfoLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 12, sIncludes, sViewsWithIds));
    }

    private ActivityEditUserInfoLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 1, (EditText) objArr[5], (EditText) objArr[4], (LinearLayout) objArr[0], (Toolbar) objArr[11], (TextView) objArr[8]);
        this.mDirtyFlags = -1;
        this.edIntroduce.setTag(null);
        this.edNickName.setTag(null);
        TextView textView = (TextView) objArr[1];
        this.mboundView1 = textView;
        textView.setTag(null);
        TextView textView2 = (TextView) objArr[10];
        this.mboundView10 = textView2;
        textView2.setTag(null);
        TextView textView3 = (TextView) objArr[2];
        this.mboundView2 = textView3;
        textView3.setTag(null);
        CircleImageView circleImageView = (CircleImageView) objArr[3];
        this.mboundView3 = circleImageView;
        circleImageView.setTag(null);
        TextView textView4 = (TextView) objArr[6];
        this.mboundView6 = textView4;
        textView4.setTag(null);
        LinearLayout linearLayout = (LinearLayout) objArr[7];
        this.mboundView7 = linearLayout;
        linearLayout.setTag(null);
        LinearLayout linearLayout2 = (LinearLayout) objArr[9];
        this.mboundView9 = linearLayout2;
        linearLayout2.setTag(null);
        this.rootView.setTag(null);
        this.tvSex.setTag(null);
        setRootTag(view);
        this.mCallback23 = new OnClickListener(this, 4);
        this.mCallback21 = new OnClickListener(this, 2);
        this.mCallback20 = new OnClickListener(this, 1);
        this.mCallback24 = new OnClickListener(this, 5);
        this.mCallback22 = new OnClickListener(this, 3);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 128;
        }
        requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
            return false;
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (C1206BR.info == i) {
            setInfo((EditInfoReq) obj);
        } else if (C1206BR.cover == i) {
            setCover((String) obj);
        } else if (C1206BR.count == i) {
            setCount((Integer) obj);
        } else if (C1206BR.cityName == i) {
            setCityName((String) obj);
        } else if (C1206BR.click != i) {
            return false;
        } else {
            setClick((EditUserInfoActivity.OnClick) obj);
        }
        return true;
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityEditUserInfoLayoutBinding
    public void setInfo(EditInfoReq editInfoReq) {
        updateRegistration(0, editInfoReq);
        this.mInfo = editInfoReq;
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        notifyPropertyChanged(C1206BR.info);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityEditUserInfoLayoutBinding
    public void setCover(String str) {
        this.mCover = str;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(C1206BR.cover);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityEditUserInfoLayoutBinding
    public void setCount(Integer num) {
        this.mCount = num;
        synchronized (this) {
            this.mDirtyFlags |= 4;
        }
        notifyPropertyChanged(C1206BR.count);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityEditUserInfoLayoutBinding
    public void setCityName(String str) {
        this.mCityName = str;
        synchronized (this) {
            this.mDirtyFlags |= 8;
        }
        notifyPropertyChanged(C1206BR.cityName);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityEditUserInfoLayoutBinding
    public void setClick(EditUserInfoActivity.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 16;
        }
        notifyPropertyChanged(C1206BR.click);
        super.requestRebind();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        if (i != 0) {
            return false;
        }
        return onChangeInfo((EditInfoReq) obj, i2);
    }

    private boolean onChangeInfo(EditInfoReq editInfoReq, int i) {
        if (i == C1206BR._all) {
            synchronized (this) {
                this.mDirtyFlags |= 1;
            }
            return true;
        } else if (i == C1206BR.nickName) {
            synchronized (this) {
                this.mDirtyFlags |= 32;
            }
            return true;
        } else if (i != C1206BR.personSign) {
            return false;
        } else {
            synchronized (this) {
                this.mDirtyFlags |= 64;
            }
            return true;
        }
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        boolean z;
        int i;
        String str;
        String str2;
        String str3;
        boolean z2;
        String str4;
        int i2;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        EditInfoReq editInfoReq = this.mInfo;
        String str5 = this.mCover;
        Integer num = this.mCount;
        String str6 = this.mCityName;
        EditUserInfoActivity.OnClick onClick = this.mClick;
        boolean z3 = true;
        if ((225 & j) != 0) {
            long j2 = j & 129;
            if (j2 != 0) {
                if (editInfoReq != null) {
                    i2 = editInfoReq.getGender();
                } else {
                    i2 = 0;
                }
                z = i2 == 0;
                if (j2 != 0) {
                    j = z ? j | 2048 : j | 1024;
                }
            } else {
                i2 = 0;
                z = false;
            }
            str = ((j & 193) == 0 || editInfoReq == null) ? null : editInfoReq.getPersonSign();
            if ((j & 161) == 0 || editInfoReq == null) {
                i = i2;
                str2 = null;
            } else {
                str2 = editInfoReq.getNickName();
                i = i2;
            }
        } else {
            str2 = null;
            str = null;
            i = 0;
            z = false;
        }
        if ((j & 132) != 0) {
            str3 = String.valueOf(num + "/30");
        } else {
            str3 = null;
        }
        long j3 = j & 136;
        if (j3 != 0) {
            z2 = str6 == null;
            if (j3 != 0) {
                j |= z2 ? 512 : 256;
            }
        } else {
            z2 = false;
        }
        long j4 = 1024 & j;
        if (j4 != 0) {
            if (i != 1) {
                z3 = false;
            }
            if (j4 != 0) {
                j |= z3 ? 8192 : 4096;
            }
            str4 = z3 ? "女" : "男";
        } else {
            str4 = null;
        }
        long j5 = j & 136;
        if (j5 == 0) {
            str6 = null;
        } else if (z2) {
            str6 = "小草星";
        }
        long j6 = j & 129;
        if (j6 == 0) {
            str4 = null;
        } else if (z) {
            str4 = "保密";
        }
        if ((193 & j) != 0) {
            TextViewBindingAdapter.setText(this.edIntroduce, str);
        }
        if ((161 & j) != 0) {
            TextViewBindingAdapter.setText(this.edNickName, str2);
        }
        if ((128 & j) != 0) {
            this.mboundView1.setOnClickListener(this.mCallback20);
            this.mboundView2.setOnClickListener(this.mCallback21);
            this.mboundView3.setOnClickListener(this.mCallback22);
            this.mboundView7.setOnClickListener(this.mCallback23);
            this.mboundView9.setOnClickListener(this.mCallback24);
        }
        if (j5 != 0) {
            TextViewBindingAdapter.setText(this.mboundView10, str6);
        }
        if ((130 & j) != 0) {
            EditUserInfoActivity.loadCover(this.mboundView3, str5);
        }
        if ((j & 132) != 0) {
            TextViewBindingAdapter.setText(this.mboundView6, str3);
        }
        if (j6 != 0) {
            TextViewBindingAdapter.setText(this.tvSex, str4);
        }
    }

    @Override // com.androidx.p013lv.mine.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        boolean z = false;
        if (i == 1) {
            EditUserInfoActivity.OnClick onClick = this.mClick;
            if (onClick != null) {
                z = true;
            }
            if (z) {
                onClick.btnBack();
            }
        } else if (i == 2) {
            EditUserInfoActivity.OnClick onClick2 = this.mClick;
            if (onClick2 != null) {
                z = true;
            }
            if (z) {
                onClick2.modifyInfo();
            }
        } else if (i == 3) {
            EditUserInfoActivity.OnClick onClick3 = this.mClick;
            if (onClick3 != null) {
                z = true;
            }
            if (z) {
                onClick3.uploadUserHead();
            }
        } else if (i == 4) {
            EditUserInfoActivity.OnClick onClick4 = this.mClick;
            if (onClick4 != null) {
                z = true;
            }
            if (z) {
                onClick4.editUserSex();
            }
        } else if (i == 5) {
            EditUserInfoActivity.OnClick onClick5 = this.mClick;
            if (onClick5 != null) {
                z = true;
            }
            if (z) {
                onClick5.editUserCity();
            }
        }
    }
}
